home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
textfile
/
txt_a2k
/
25mgupgd
/
bankstat.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-25
|
1KB
|
39 lines
/* Checker for I/O Memory Status Register ($FF8000) */
/* by Barry Orlando in Mark Williams C */
#include <stdio.h>
#include <osbind.h>
#include <aesbind.h>
#define peekb(cp) (*((char *)cp))
main()
{
int p;
printf("\f\nMemory Configuration, written by Barry Orlando");
printf("\nversion 1.0\n");
printf("\n Memory Configuration Table\n\n");
printf("\n Status Bank 0 Bank 1");
printf("\n -----------------------------------");
printf("\n 3 512K 0K ");
printf("\n 5 512K 512K ");
printf("\n 6 512K 2M,normally reserved");
printf("\n 7 2M 0K ");
printf("\n 9 2M 512K ");
printf("\n 10 2M 2M ");
printf("\n\n Your Computer's Status is: ");
p = sup_stf();
printf("%d",p);
printf("\n\n Press any key to quit.....");
printf("\n Bye");
gemdos(0x01);
}
sup_stf()
{
long save_ssp;
int o;
save_ssp = Super(0L);
o = peekb(0x424);
Super(save_ssp);
return (o);
}